﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomerOrderViewerCtrl.ascx.cs" Inherits="WebUI.Controls.CustomerOrderViewerCtrl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Src="~/Controls/POSControls/OrderItemsCtrl.ascx" TagName="OrderItems" TagPrefix="uc" %>

<script type="text/javascript">
    function pay(id) {
        var returnValue = window.showModalDialog('PayOne.aspx?id=' + id, '', 'dialogWidth=280px;dialogHeight=200px;resizable=no;help=no;unadorned=yes;');

        if (returnValue > 0) {
            window.close();
        }
            
        return false;
    }
</script>

<asp:Panel ID='mainPanel' runat="server">
    <table width="100%">
        <tr>
            <td style="text-align:left; vertical-align:top">
                <asp:Label class='labelMessage1' ID="lblCompany" runat="server" Text=""></asp:Label><br />
                <asp:Label class='labelMessage' ID="lblABN" runat="server" Text=""></asp:Label><br />
                <asp:Label class='labelMessage' ID="lblAddress" runat="server" Text=""></asp:Label><br />
                <asp:Label class='labelMessage' ID="Label1" runat="server" Text="Phone:"></asp:Label>
                <asp:Label class='labelMessage' ID="lblPhone" runat="server" Text=""></asp:Label><br />
                <asp:Label class='labelMessage' ID="Label2" runat="server" Text="Fax:"></asp:Label>
                <asp:Label class='labelMessage' ID="lblFax" runat="server" Text=""></asp:Label><br />
            </td>
            <td style="text-align:right; vertical-align:top">
                <asp:Label class='labelMessage2' ID="Label121" runat="server" Text="CUSTOMER ORDER"></asp:Label>
                <div id="divInvoiceNo" runat="server"></div>
                <asp:Label id="lblInvoiceNo" runat="server" class='labelBarCode'></asp:Label>
            </td>
        </tr>
        <tr>
            <td style='height:20px' colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="text-align:left; width:50%; vertical-align:top">
                <asp:Label class='labelMessage0' ID="Label4" runat="server" Text="To: "></asp:Label>
                <asp:Label class='labelMessage' ID="lblCustomer" runat="server" Text=""></asp:Label>
            </td>
            <td style="text-align:right; width:50%; vertical-align:top">
                <asp:Label class='labelMessage0' ID="Label5" runat="server" Text="Date: "></asp:Label>
                <asp:Label class='labelMessage' ID="lblDate" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <uc:OrderItems Width="100%" ID="orderDetails" runat="server" AllowPaging="false" AllowSelecting="false" AllowSorting="false"
                 ShowFooter="false" ReadOnly="true" />
             </td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%">
                    <tr>
                        <td style="text-align:right; vertical-align:top; width:70%">
                        </td>
                        <td style="text-align:right; vertical-align:top; width:200px">
                            <table width="200px">
                                <tr>
                                    <td style="text-align:right; vertical-align:top">
                                        <asp:Label ID="label3" runat="server" Text="Total GST:" class="labelMessage0"></asp:Label>
                                    </td>
                                    <td style="text-align:left; vertical-align:top">
                                        <asp:Label ID="lblTotalGST" runat="server" Text="" class="labelMessage0"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right; vertical-align:top">
                                        <asp:Label ID="lblSpecialDiscountLabel" Visible="false" runat="server" Text="Special Discount:" class="labelMessage0"></asp:Label>
                                    </td>
                                    <td style="text-align:left; vertical-align:top">
                                        <asp:Label ID="lblSpecialDiscount" Visible="false" runat="server" Text="" class="labelMessage0"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right; vertical-align:top">
                                        <asp:Label ID="label12" runat="server" Text="Total Amount:" class="labelMessage0"></asp:Label>
                                    </td>
                                    <td style="text-align:left; vertical-align:top">
                                        <asp:Label ID="lblTotalAmt" runat="server" Text="" class="labelMessage0"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="text-align:left; border-bottom:dotted 1px;vertical-align:bottom; width:auto; height:30px" colspan="2" class="labelMessage" >
                <asp:Literal ID="litNote" runat="server" ></asp:Literal>
            </td>
        </tr>
        <tr>
            <td style="text-align:left; border-bottom:dotted 1px;vertical-align:bottom; width:auto; height:30px" colspan="2" class="labelMessage" >
            </td>
        </tr>
        <tr>
            <td style="text-align:left; height:20px" colspan="2">
            </td>
        </tr>
        <tr>
            <td style="text-align:left; vertical-align:top; width:auto" colspan="2" class="hintBold" >
                <asp:Literal ID="litFooter" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
</asp:Panel>

<asp:HiddenField ID="hidID" runat="server" />
<asp:Button ID="btnLoad" runat="server" OnClick="btnLoad_OnClick" style="display:none" />